package springboot_kafka_storm.serviceimpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import springboot_kafka_storm.dao.InfoGetDao;
import springboot_kafka_storm.entity.InfoGet;
import springboot_kafka_storm.service.InfoGetService;

@Service
public class InfoGetServiceImpl implements InfoGetService{

	@Autowired
	private InfoGetDao infoGetDao;
	
	@Override
	public boolean insertService(List<InfoGet> entity) {
		boolean flag = false;
		try {
			infoGetDao.insertDao(entity);
			flag = true;
			System.out.println("数据写入成功！");
		} catch (Exception e) {
			System.out.println("数据写入失败！");
		}
		return flag;
	}

}